Can I use c# webrowser control to get latitude and longitude using google javascript api v3?
Can I use c# webrowser control to get latitude and longitude using google javascript
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.
You don’t have to use any javascript API from Google to get geocode data. Simply use the WebRequest object and read the result from the XML file provided by the geocode service.
From there, you can get the Stream and create a StreamReader as follow:
After that, simply decode the XML by using the element tag “lat” and “lng”.
You should then be able to get the data you are looking for.
For more information, and particulary the terms of service for using the Google Geocode Service, visit the Google Maps API website.