how to search location using arduino and google maps server

hello

we are trying to make an iot project using arduino and WiFi module

one of the required functions is to make the arduino search in google maps for a specific location without any meditation from the user

we almost have done everything but here are the problems we face :-X 1- what is client URL of google maps ? 2- what is the http request for the client to search this specific location? 3- how can I send back the location to the user's smartphone using Blynk library ?

thanks in advance

we almost have done everything but here are the problems we face :-X 1- what is client URL of google maps ? 2- what is the http request for the client to search this specific location? 3- how can I send back the location to the user's smartphone using Blynk library ?

If I understand your task correctly, you haven't done anything yet. Please define what your "almost everything" includes.

The arduino should search for a location. Where does the Arduino have that information from? Does it include a GPS?

Given the Arduino has found that position, what kind of information do you want from Google Maps to return to the user?

pylon: If I understand your task correctly, you haven't done anything yet

our project should do more than finding a location and send it back , so we've done almost every thing except this task cause we don't have enough information about how can arduino deal with GPS or what is the needed http request to send to Google Maps to give it my my location and search for the desired location and send it back as an email for the user's smartphone

I hope I made it clear this time :D :D

we don't have enough information about how can arduino deal with GPS

A Google search can certainly help!

Tens of thousands of people have successfully done this and many have posted their projects on line.

what is the needed http request to send to Google Maps to give it my my location and search for the desired location

I don’t know if I don’t understand your English or if you don’t know what you want. Given the GPS gave your Arduino it’s position, what do you want Google Maps to search for?

You need to understand how to communicate with the Google Maps API. You can make a request for location information and get a response.

The request will need to be in the format defined by Google Maps API. The response will be in the format defined by Google Maps API. There might be some options for getting this in various formats.

All the information on how to access this API, including the address is on Google's web site. You can start looking here, or there are many examples online if you search.

For example, the URL for the free geocoding service is: http://maps.googleapis.com/maps/api/geocode/json?XXXXXXXXXX Where 'XXXXXXXXX' contains the request information in the specified format E.g. address="Paris" Note that this example is a free service and there is a limit on the number/frequency of requests you can make.

It may be that there is some functionality in the Blynk library to do this without going via the Arduino - but I'm just guessing. It would be worth checking because it could make things a lot easier.

Overall I don't think this is really an Arduino question, unless it is simply 'how can you interact with a website using Arduino' and I don't have any idea about that.

pylon: what do you want Google Maps to search for?

I simply want the Google Maps to search for the nearest hospital for my location using arduino is that possible ??

Again, Google to the rescue! You really need to improve your search skills.

https://www.google.com/search?q=google+maps+search+for+nearest+landmark

MohamedAlsayad: I simply want the Google Maps to search for the nearest hospital for my location using arduino is that possible ??

Hi Mohamed, What you're looking for is "Reverse Geocoding" - which convert long/lat coordinates into a physical location. Then you'll need a "Places" API - which will find the nearest place by type for a given location.

There are plenty of services out there, but you'll need to share more details on the workflow in order to get some help. For example, if your device is going to serve a webpage - I would point you to Google Maps JS Reverse Geocoding.

Anyway, I would assume that you need an API. There are a lot of "Reverse Geocoding" providers, but I'll stick with the obvious - Google.

Reverse Geocoding - Convert your long/lat into a physical location. Places API - you can find places by their type. unfortunately this service is depricated and won't be available for long. In addition, Google APIs have a usage limit.

I strongly suggest to check OpenStreetMap - you can setup you own service and use it without worries (just update the data once in a while). Good luck.