I
I
Igor Bezlepkin2015-11-09 15:47:49
Android
Igor Bezlepkin, 2015-11-09 15:47:49

Is it possible to do a search on the map in android application?

Hey! Is it possible to search on Yandex, Google, openstreetmaps?
Ie in your application to search for the address.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem Voronov, 2015-11-09
@newross

Can. This is called "geocoding". There are plenty of manuals and examples, nothing complicated.

O
Oleg Gamega, 2015-11-09
@gadfi

tyts example android
or just

{
   "results" : [
      {
         "address_components" : [
            {
               "long_name" : "Московский Кремль",
               "short_name" : "Московский Кремль",
               "types" : [ "point_of_interest", "establishment" ]
            },
            {
               "long_name" : "Центральный административный округ",
               "short_name" : "Центральный административный округ",
               "types" : [ "sublocality_level_1", "sublocality", "political" ]
            },
            {
               "long_name" : "Москва",
               "short_name" : "Москва",
               "types" : [ "locality", "political" ]
            },
            {
               "long_name" : "город Москва",
               "short_name" : "г. Москва",
               "types" : [ "administrative_area_level_2", "political" ]
            },
            {
               "long_name" : "город Москва",
               "short_name" : "г. Москва",
               "types" : [ "administrative_area_level_1", "political" ]
            },
            {
               "long_name" : "Россия",
               "short_name" : "RU",
               "types" : [ "country", "political" ]
            },
            {
               "long_name" : "103073",
               "short_name" : "103073",
               "types" : [ "postal_code" ]
            }
         ],
         "formatted_address" : "Московский Кремль, Москва, Россия, 103073",
         "geometry" : {
            "location" : {
               "lat" : 55.7520233,
               "lng" : 37.6174994
            },
            "location_type" : "APPROXIMATE",
            "viewport" : {
               "northeast" : {
                  "lat" : 55.75337228029149,
                  "lng" : 37.6188483802915
               },
               "southwest" : {
                  "lat" : 55.75067431970849,
                  "lng" : 37.6161504197085
               }
            }
         },
         "place_id" : "ChIJc-UVs1BKtUYRaC6bPVq_hqg",
         "types" : [ "museum", "point_of_interest", "establishment" ]
      }
   ],
   "status" : "OK"
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question