Generally, you would insert the data as follows:
PUT GeoLoc/doc/1
{
"location": {
"lat": 41.12,
"lon": -71.34
}
}
This is further described in the Geopoint documentation.
Now, it depends how you are ingesting data into Elasticsearch. Are you using Beats, Logstash, or some other homebrewn solution?