Solved

Visual Studio .net asp Google Maps API

Posted on 2013-06-06
4
2,231 Views
Last Modified: 2013-08-21
I need help with the Google Maps API and extracting Geocodes.

In Visual Studio. net (asp.net) when a user presses a button I want to be able to:

Pull addresses from a SQL table that have null Longitude or Latitude ('Lat' and 'Lng' fields), pass the address information (Address, City, State, Zip) to the Google API, retrieve the Longitude and Latitude, then update the orginal SQL table fields 'Lat' and 'Lng'.  

Thank you in advance for your help.
0
Comment
Question by:toddpotter
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 13

Accepted Solution

by:
Jitendra Patil earned 500 total points
ID: 39228157
hi toddpotter

try this link below it contains the working demo of your need.
get latitude and longitude from address google map api

hope this helps
0
 
LVL 16

Expert Comment

by:Rose Babu
ID: 39228318
as patil786 suggested, you can use Google maps API.

in that, use GoogleMaps Geocoding API to get LatLng details for a given address

have a look on the below link for the service URL and the examples

https://developers.google.com/maps/documentation/geocoding/

call the service URL with the updated address and then parse the response to get the LatLng values.
0
 

Author Comment

by:toddpotter
ID: 39234545
I see the examples, but I am not well experienced on the asp.net side of Visual Studio (I am a beginner); I need more help.  Could you provide me with more in depth info and what code goes in which section.  

For example - I currently have the following:

A form "admin/GeoCode.aspx" which has a button "Geocode Data"

On the "admin/GeoCode.aspx.vb" page I assume I would fill the datatable with addresses and cycle through the table.

I have a class called "GeoCoding.vb" where I would assume that I need to pass the address data from the "admin/GeoCode.aspx.vb" page to the API and return the longitude and latitude back to the datatable (I need help on the code here to pull out the geocode information and return it to the admin/GeoCode.aspx.vb page to update the datatable).

Also, which references do I need?  How do I import for jquery, java, json etc?


Thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question