Maps Based On Longitude & Latitude - Google Maps Or Bing Maps?
Jan 7, 2011I need your advice to use Google Maps or Bing Maps with my form ASP.NET, and I wanaa the location based on Longitude & Latitude NOT by address.
View 3 RepliesI need your advice to use Google Maps or Bing Maps with my form ASP.NET, and I wanaa the location based on Longitude & Latitude NOT by address.
View 3 RepliesI need to use a map in an application that I develop. In my application I want to use pins that will show infoboxes on the map. Use the zoom in, zoom out functionality and the ability to show several maps on the same page. I won't need to use the search locations or routing directions.Which type of maps should I use? Google or Bing? As I understand, they both have good user interface, but which one is easier to develop with? If I'll use Bing then will it be more Microsoft like, I mean, it will let me use visual studio convenient programming? More or less javascript so it will be a hassle do debug it?
View 2 RepliesI am trying to use the Bing Maps Ajax Control to plot pins of locations stored in a database to the bing map on a web page. All the locations are geocoded and the lat longs stored in the database. I am using ASP.NET (C#), but can't figure out or find any tutorials on how to go about doing this. All I can find are articles on how to import shapes into a map from either GeoRSS, Bing Maps, and KML.
I have used (and paid for ;o) the excellent control from Simplovations to do alot of what I need to do, namely working with my data as normal in the code behind, getting a DataSet of my locations and plotting the points to the map. It has been great, but I want to know how to do it with out using a third party control. My main reason for wanting this is to be able to cluster my pins and hopefully learn a bit of Javascript along the way. Does anyone know how to do this or can point me to any tutorials or articles online that can help me on my way. I have been searching the net for days now and can't find anything :(
I have Postcode in my large database, which contains values like SL5 9JH, LU1 3TQ etc. Now when I am pasting above postcode to maps.google.com it's pointing to a perfect location.. My requirement is like I want to pass post codes to maps.google.com and it should return a related latitude and longitude of that pointed location, that I want to store in my database. So, most probably there should be some javascript for that If anybody have another idea regarding that please provide it
View 3 Repliesvar w = [], wp;
var rleg = directionsDisplay.directions.routes[0].legs[0];
data.start = {'lat': rleg.start_location.lat(), 'lng': rleg.start_location.lng()}
data.end = {'lat': rleg.end_location.lat(), 'lng': rleg.end_location.lng()}
var items = new Array();
[Xode] ....
Above code Output :
{"start":{"lat":22.3038548,"lng":70.80213219999996},"end":{"lat":22.470967,"lng":70.05772219999994},"waypoints":["jamnagar","kalavad"]}
But I want to output like this :
{"start":{"lat":22.3038548,"lng":70.80213219999996},"end":{"lat":22.470967,"lng":70.05772219999994},"waypoints":[[22.224905,70.62623409999992],[22.509108,70.22394120000001]]}
So how to convert waypoints location name into waypoints location latitude and longitude????
I have variable as
var from_Lati = 19.132324234 // from latitude
var from_longi = 19.11233334 // from longitude
and I have TO latitude and Longitude in Array as
var To_Lati = [18.132323,18.90941,18.31232423] // to latitude in array
var To_Longi = [18.2132123,18.242423,18.43243] // to longitude in array
I have gone through many reference on internet but can't find the solution for calculating the distance with respect to array.. Now I want to find the distance between them using JavaScript...
I want to caclate Latitude and Longitude from address in asp.net. I have written the necessary code ,but could not get the desired result
I have put an alert and tested it.Its working fine until geocoder.geocode()function is called.Alert put inside the function is not working.It seems there is some issue with function.
This is my javascript function
function calculateCoordinates() {
var txtAddress1 = document.getElementById('<%= txtAddress1.ClientID%>');
var txtLatitude = document.getElementById('<%= txtLat.ClientID%');
var txtLongitude = document.getElementById('<%= txtLong.ClientID%>');
var address = txtAddress1.value;
[Code] ....
Refer [URL] .... I want when I click on map to show coordinate in text box it show marker in map I mean below marker:
View 1 Repliesi'm trying to display location dynamically using google map.
The location will be passed as a parameter as follows.
country, city, address and block number.
How can i implement that?
Reverse Geocoding (Address Lookup)
How can i retrieve map for location after save latitude , longitude in the database....
I used code for saving latitude , longitude [URL] .....
I am working on a ASP.Net project(c#). I have SQL Server Database linked with it. The project has the list of client present in the city. A page will show the list of client on a datagrid . Clicking on a client will redirect to another page which show the details of that client. I want to display Google map picture or Google street picture of that client along with the details on that client details page through Longitude and latitude. Each client details will be fetched from the database to show on that page and every client longitude and latitude value is also saved in a column in the database.
View 1 RepliesI use below code in website to show googlemaps
<head>
<meta charset="UTF-8" />
<title>Google Maps</title>
<style type="text/css">
#map-canvas {
[CODE]...
it will show googlemap from coordinate now I want save some coordinate in database and bind these coordinate from database how I can do it?
This is code for searching latitude and longitude . so how to save into database.
function GetLocation() {
var geocoder = new google.maps.Geocoder();
var address = document.getElementById("txtAddress").value;
geocoder.geocode({ 'address': address }, function (results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var latitude = results[0].geometry.location.lat();
[Code] .....
I find this code it get me location but i don't know how to save client location in sql database to retrieval it Later
<html>
<head>
<script src="http://maps.google.com/maps/api/js?sensor=false">
</script>
<script type="text/javascript">
if (navigator.geolocation) {
[Code] ....
I am starting to working with one interesting project.i have idea to make web application , how to integrate bing maps into my web application?
i mean I want a map of my city and then i want to mark some things on that map like... check points, mark a school or mark a restaurant....
Well while I am creating solution for this, Maybe I shouldn't do it with asp.net mvc but I make my decision that it is the handy way to make it.
I'm trying to find the best way to implement Bing maps into my ASP.NET MVC2 web application.
I came accross MvcMaps Preview1 on Codeplex but it doesn't work good, at least for me. Maybe that's because it's for .NET 3.5 and VS2008, I don't know.
I'd like to avoid Silverlight. what should I use and what's the easiest way to get a Bing Map show some data on it?
am working on google maps api to store the latittude and longitude into the MS Access Database..I want to add the markers to the particular locations and store it onto the database...
View 3 RepliesCan anyone tell how to include, save and use the google maps in asp.net applications??
View 5 RepliesI am developing a cms that will use more than one domain and i have to use only one google map script in my page. Is there a way to use google maps without api key? Otherwise it's not working?
View 4 RepliesIf you map a google maps application and want to store every location the user clicks on, how can you store that data in vb.net/asp.net in a collection, with the intention of putting it in a database later.
I'm pretty sure I know how to store it in javascript, perhaps with an array, but I'm unsure of how to transfer that into the application (Without sticking it in visible text that the user sees or adding it to a form).
I am creating a business directory website which has street addresses stored in the database. I would like to calculate the distance from a given zipcode to the street address using google maps in ASP.Net. I don't even know where to begin.
View 1 RepliesI used it as my POC and created a .net project from the concept. I now have markers and infoWindows being populated from the database which is pretty cool.
My problem is I want to add InfoWindows in a slick way (not only to the map, but also save to the db). Instead of having .net controls outside of the map window I want to be able to add info to the map directly. If the user clicks in the map I would like to be able to add a marker and InfoWindow with asp controls in the window (textbox and button).
<html>
<head>
<title>
title here
</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
[Code]....
I want to use google map , which show the location, address
How to do this....?
So far I use [URL] to get the longitude and lattitude of some address.
function load()
{
if (GBrowserIsCompatible())
{
map = new GMap2(document.getElementById('"mapHolderID');
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(lattitude,longitude), 15);
var point=new GLatLng(lattitudelongitude);
map.addOverlay(new GMarker(point);
}
}
So if user enters Downtown it would take the user to downtown. Now what I want is that if user searches for downtown resturants search result should point to downtown as well as list all the resturants in downtown.
Is it possible to post a message to a place indicated by a user using Google Maps API ? I'm using ASP.NET/C#.
View 1 Replies