Hello i’m new with c# and i’ve been asked to integrate google maps and connect it to database, anyone can help me?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Basing this on your initial post and your comment, and to be honest presuming that you know both C# and the maps API (and that therefore it’s the integration that you need help with).
You will need to:
1: Set up your connection string.
2: Query the database for the address that you require.
3: Pass this address to the JavaScript that contains your map, personally I do this using a data reader to construct arrays from the information (if you need more than one address), and then pass them using
All inside an update panel.
4: Next you will need to extract the information from the arrays at the front end and then Geocode this using the Google Geocoding API to eventually get your plottable point.
Information on each of these steps can be easily Googled so I’m again presuming it was the combination that you were unsure about.
A couple of notes on the Geo-coding API though (presuming free licence):
1: You are limited to 2.5k requests per day.
2: The request limit is also limited, I have seen speculation that this is to around 5 a second (or 1 every 200ms) but from my experience it seems more like 2 per second.
As an aside the more information you provide the easier it is for people to help, and you will most probably be using SQL (with SQL Server) and not mySQL.
Hope some of this helps.