Hi Mustafa,
The Map Image API (http://developer.yahoo.com/maps/rest/V1/) only supports a
single location. The AJAX API (http://developer.yahoo.com/maps/ajax/) does
support multiple markers, but would require using JavaScript or embedding a
browser like context inside your Java app.
Using Java, you could use the Map Image API combined with the Geocoding API
(http://developer.yahoo.com/maps/rest/V1/geocode.html). You would have to use
the Map Image API to retrieve an image for the first point, then overlay an
additional marker on the image using the result from the Geocoding API.
-James
--- In yws-maps@yahoogroups.com, "mustafa.shiraz" <mustafa.shiraz@...> wrote:
>
> hi
>
> i m developing an application in java which displays a map according to given
specification like longitude, latitude, street name etc. Can u please tell me if
it is possible to give 2 location specification in the request so that when i
get the map image it highlights two locations?
>
> For example is street abc and street xyz is very close to each other and we
can see both of them in the same map view. So is it possible to point or
highlight both of them?
>
> Thanks
> Mustafa
>
I know a few months back on the BB there were some postings on YPolyline issues
and their rending in newer version of IE. I am not having a similar issue with
YPolylines in Firefox 3.5 on the Mac. The lines sometimes show up, and upon
zooming in and out kind of flicker.
Help?
Tobias,
Thanks for the response! That's exactly what I needed.
Steve Oldner
From: yws-maps@yahoogroups.com [mailto:yws-maps@yahoogroups.com] On Behalf Of
toobbs
Sent: Friday, July 03, 2009 3:06 AM
To: yws-maps@yahoogroups.com
Subject: [yws-maps] Re: Simple API
Hi,
if you just want to show the regular Yahoo Map, the you could use this URL:
http://maps.yahoo.com/#mvt=m&zoom=16&q1=70815,1578%20Marcia%20Dr.
Tobias
--- In yws-maps@yahoogroups.com<mailto:yws-maps%40yahoogroups.com>, Steve Oldner
<steven.oldner@...> wrote:
>
> Currently I'm using SAP's ABAP to send an url to mapquest that will open a
browser and display the map with the address.
>
> http://www.mapquest.com/maps?address=1578%20Marcia%20Dr.&zipcode=70815
>
> Works fine.
>
> Okay, how do I this in Yahoo? I have already gotten an appid.
>
> Thanks!
>
> Steven Oldner
> DOA/OIS Payroll & Interfaces Team
> State of Louisiana
> 225.219.6935
>
>
>
> [Non-text portions of this message have been removed]
>
[Non-text portions of this message have been removed]
As far as I can tell, the GeoRSS overlay functionality within the JS-Flash API
does not support lines, ie: <geo:line>37.38015,-121.908627 37.380639,-122.001856
37.380639,-122.001856 37.18015,-121.908627</geo:line>
Is that correct?
Thanks, Nick
Hi All,
I am developing a application. I want to do perform optimum route analysis by
giving origin and destination through API and then i have to retrieve the
lat/long in the route through API.
Anyone have developed such a solution, could you tell me which APIs i have to
use.
Thanks,
Vadivelan. P
India
Hi,
I'm trying to embed a yahoo map using AJAX API.
I can't get the map to display properly, i keep getting the following error in
IE:
'YImage' is undefined.
After I refresh a couple of times, the map gets displayed.
Any help .. greatly apreciated
This is the code I'm using:
<head>
<script type="text/javascript"
src="http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=m4_YOGDV34FctUmqQdEBAbf_Io8E\
VEbAZ5yGIZfRUXojmhAUTte1zjpEbs87qKQ-"></script>
</head>
<body>
<!-- The map container -->
<br/> <br/>
<div id="mapContainer"> </div>
<!-- <div id="mapContainer" style="width:8850px; height:3150px"></div> -->
<script type="text/javascript">
// Create a map object
var map = new YMap(document.getElementById('mapContainer'), YAHOO_MAP_REG, new
YSize(500,800));
//map.setMapType(YAHOO_MAP_REG);
// Add Map controls to the map
map.addTypeControl();
map.addZoomLong();
map.addPanControl();
// Create a location marker on the map for 'location'
function createLocationMarker(location, id,swtext)
{
var myImage = new YImage();
// myImage.src = 'http://us.i1.yimg.com/us.yimg.com/i/us/map/gr/mt_ic_c.gif';
myImage.src = 'http://sdb24685/maps/red-dot.png';
myImage.size = new YSize(30,30);
myImage.offsetSmartWindow = new YCoordPoint(0,0);
var marker = new YMarker(location,myImage);
marker.addAutoExpand(swtext);
YEvent.Capture(marker,EventsList.MouseClick,
function() { marker.openSmartWindow(swtext) });
map.addOverlay(marker);
return marker;
}
// Center the map over the 'location'
function goToLocation(location)
{
map.drawZoomAndCenter("Miami, FL",7);
}
// Zoom and center the map over the 'location'
function zoomToLocation(location, zoom)
{
map.drawZoomAndCenter(location,zoom);
}
</script>
</body>
I have not been able to change the size of a map I'm using. I would like to
make it larger. I did my changes in the <div> tag but had no luck...
Any advise is greatly apreciated..
<div id="map" style="width: 950px; height: 450px"></div>
Hi guys :)
I'm working with the YEvent class and it captures all the events just fine but I
need the map to stop capturing those events at some point and I don't know how
to do it :(
Thanks a lot in advance,
Reine.
I am just trying to convert an array of YGeoPoints to an array of YCoordPoints
by converting each point individually in a loop.
The source code snippet is as follows:
while(loopCnt < maxLoopCnt) {
var tempLat = Points[loopCnt][1];
var tempLon = Points[loopCnt][0];
temp = new YGeoPoint(tempLat, tempLon);
temp1 = new YCoordPoint();
temp1 = map.convertLatLonXY(temp[loopCnt]);
polylinePointsX.push(temp1.x);
polylinePointsY.push(temp1.y);
loopCnt++;
}
The Points array has the correct Lat and Lon values, I have already checked
that. The "temp" variable is getting created correctly as well.
But the "temp1" variable gets assigned a boolean value "false" and does not get
the converted values assigned to it. (I checked in the browser's debugger)
Can you tell me what the problem is??
I had previously written a geocoder in C# that would take an address and send it
to the ESRI ArcGIS Webservices to get a geocoded address back. This webservice
has now gone belly up and I need a new geocoding service to recommend for my
clients and to write an interface for. Points of my application:
1) This is not a free site.
2) I am not using yahoo maps as my map source.
3) This is for a product that my company is selling and we are asking our
clients to purchase "credits" for this service.
My questions are:
1) Where can I find information on the wsdl and connect to the proper webservice
for Yahoo!'s API?
2) Where can I find information about cost to my clients and how they would
purchase "credits"?
3) Is there a developer account that will allow me to access this without
purchasing credits?
Thanks in advance,
Lee
>
> Using Java, you could use the Map Image API combined with the Geocoding API
(http://developer.yahoo.com/maps/rest/V1/geocode.html). You would have to use
the Map Image API to retrieve an image for the first point, then overlay an
additional marker on the image using the result from the Geocoding API.
>
Hi James,
but how could I find out the pixel position of the second point from which I
only do have the coordinates?
This would probably also answer these questions:
http://tech.groups.yahoo.com/group/yws-maps/message/7194http://tech.groups.yahoo.com/group/yws-maps/message/7190
It would be great if you could give some background information!
Thank you,
Tobias
You can create a class for your map
and include it in the head of your page or in your css stylesheet:
.map {
width:300px; height:300px;
border-color:darkblue;
border-style:solid;
border-width:1px;
}
Then call the class when you define your div:
<div id="mymap" class="map"><script type="text/javascript">
// Create a map object
var map = new YMap(document.getElementById('map'));
// Display the map centered on a geocoded location
map.drawZoomAndCenter("44023", 5);
</script></div>
--------- original message ------------
<http://groups.yahoo.com/group/yws-maps/message/7201;_ylc=X3oDMTJyazBqaDE4BF
9TAzk3MzU5NzE1BGdycElkAzE1NDI5MzgwBGdycHNwSWQDMTcwNTAwNTUxMgRtc2dJZAM3MjAxBH
NlYwNkbXNnBHNsawN2bXNnBHN0aW1lAzEyNDgxNjE5MDM-> changing the size of a
displayed map
Posted by: "rmabjish" <mailto:rmabjish@...?Subject=
Re%3Achanging%20the%20size%20of%20%20a%20displayed%20map> rmabjish@...
<http://profiles.yahoo.com/rmabjish> rmabjish
Mon Jul 20, 2009 8:45 pm (PDT)
I have not been able to change the size of a map I'm using. I would like to
make it larger. I did my changes in the <div> tag but had no luck...
Any advise is greatly apreciated..
<div id="map" style="width: 950px; height: 450px"></div>
[Non-text portions of this message have been removed]
Hi All,
I am developing a web application, in this i have to perform these two tasks,
i) Javascript API calls for optimum routing based on start/origin and
end/destination.
ii) Retrieve the lat/long for the route identified for the optimum route.
If you have worked in these, kindly let me know how to do.
Hi Lee,
the "Yahoo! Maps Web Services - Geocoding API" would be the right thing for you:
http://developer.yahoo.com/maps/rest/V1/geocode.html
For information about commercial use, I think you will have to contact Yahoo:
http://developer.yahoo.com/register/
But you can already try it out, just get yourself a App ID:
https://developer.yahoo.com/wsregapp/
Tobias
--- In yws-maps@yahoogroups.com, "lkeel75" <lkeel75@...> wrote:
>
> I had previously written a geocoder in C# that would take an address and send
it to the ESRI ArcGIS Webservices to get a geocoded address back. This
webservice has now gone belly up and I need a new geocoding service to recommend
for my clients and to write an interface for. Points of my application:
>
> 1) This is not a free site.
> 2) I am not using yahoo maps as my map source.
> 3) This is for a product that my company is selling and we are asking our
clients to purchase "credits" for this service.
>
> My questions are:
>
> 1) Where can I find information on the wsdl and connect to the proper
webservice for Yahoo!'s API?
> 2) Where can I find information about cost to my clients and how they would
purchase "credits"?
> 3) Is there a developer account that will allow me to access this without
purchasing credits?
>
> Thanks in advance,
> Lee
>
Part ii of your question is rather confusing...
>>>ii) Retrieve the lat/long for the route identified for the optimum
route
A lat/long point, by definition, is a specific point on earth, not a
route...
A route (assuming you mean by automobile) is defined by by driving
directions
on streets, which are labeled by name, not a single latitude/longitude point
Maybe you could clarify for the group what it is you are trying to do?
_____
<http://groups.yahoo.com/group/yws-maps/message/7207;_ylc=X3oDMTJycmt1bjZxBF
9TAzk3MzU5NzE1BGdycElkAzE1NDI5MzgwBGdycHNwSWQDMTcwNTAwNTUxMgRtc2dJZAM3MjA3BH
NlYwNkbXNnBHNsawN2bXNnBHN0aW1lAzEyNDg0MjQzMjM-> routing / retrieving
lat/long
Posted by: "vadi814" <mailto:vadi814@...?Subject=
Re%3Arouting%20%2F%20retrieving%20lat%2Flong> vadi814@...
<http://profiles.yahoo.com/vadi814> vadi814
Thu Jul 23, 2009 4:07 pm (PDT)
Hi All,
I am developing a web application, in this i have to perform these two
tasks,
i) Javascript API calls for optimum routing based on start/origin and
end/destination.
ii) Retrieve the lat/long for the route identified for the optimum route.
If you have worked in these, kindly let me know how to do.
[Non-text portions of this message have been removed]
I am currently building a website and want to embed a location map to it. I have
the map embeded by using the place name but want to use latitude/longatude
coords to specify exact location. Can anyone tell me how to get
latitude/longatude values for a specific location.
Yahoo! Developer info for the GeoCode API:
http://developer.yahoo.com/maps/rest/V1/geocode.html
------------- original message -------------------
Can anyone tell me how to get latitude/longatude values for a specific
location?
[Non-text portions of this message have been removed]
In the past week I've been getting a few scattered complaints that my yahoo maps
(ajax API) aren't loading up, just a few isolated cases. In the past 24 hours
I've been receiving more of these complaints from a variety of locations all
over the country.
Is there a DNS problem going around or is the yahoo maps server having
intermittent problems or something?
Is anyone else experiencing this?
Any help or advice or information would be much appreciated!!
I've got an application that creates an XML file and gets the response from the
simple mapping API. It works quite well except for not loading some of the
images correctly.
In the legend at the top of the map the first few will appear correctly - the
problem is always in the last image or images. IE7 renders the image as a dead
link (square box with red x).
When those images drop, two things can happen in the map:
The first possibility is for the map to display with the correct images -
despite the images not loading in the legend.
The second possiblity is for the map to display as if I'd not specified an icon
at all, just giving me generic different colored square pointers.
I've looked at the XML I'm generating and don't see an issue. Using wireshark
to sniff the traffic between my page and yahoo's servers I don't see any HTTP
errors that are happening.
This is a sample of the XML I'm passing the simple API. I've edited it so as
not to identify anything/anyone.
(I've tried enclosing my icon links as ![CDATA[valid link]] and that just
guarantees that the icons show up as dead links.)
Anyone else seen this issue?
-Tim
(XML follows)
-----------------
<?xml version='1.0'?>
<rss version='2.0' xmlns:geo='http://www.w3.org/2003/01/geo/wgs84_pos#'
xmlns:ymaps='http://api.maps.yahoo.com/Maps/V1/AnnotatedMaps.xsd'>
<channel>
<title>Sample XML File</title>
<link>valid link redacted</link>
<description>sample result</description>
<ymaps:Groups>
<group>
<Title>45472</Title>
<Id>id-1</Id>
<BaseIcon>http://l.yimg.com/a/i/us/ls/gr/1.gif</BaseIcon>
</group>
<group>
<Title>45519</Title>
<Id>id-2</Id>
<BaseIcon>http://l.yimg.com/a/i/us/ls/gr/2.gif</BaseIcon>
</group>
<group>
<Title>45564</Title>
<Id>id-3</Id>
<BaseIcon>http://l.yimg.com/a/i/us/ls/gr/3.gif</BaseIcon>
</group>
<group>
<Title>45487</Title>
<Id>id-4</Id>
<BaseIcon>http://l.yimg.com/a/i/us/ls/gr/4.gif</BaseIcon>
</group>
<group>
<Title>45548</Title>
<Id>id-5</Id>
<BaseIcon>http://l.yimg.com/a/i/us/ls/gr/5.gif</BaseIcon>
</group>
</ymaps:Groups>
<item>
<Title>45472</Title>
<link>valid link redacted</link>
<description>id-1</description>
<ymaps:Address>location redacted</ymaps:Address>
<ymaps:CityState>Scottsdale, AZ</ymaps:CityState>
<ymaps:Zip>85262</ymaps:Zip>
<ymaps:GroupId>id-1</ymaps:GroupId>
</item>
<item>
<Title>45519</Title>
<link>valid link redacted</link>
<description>id-2</description>
<ymaps:Address>location redacted</ymaps:Address>
<ymaps:CityState>Scottsdale, AZ</ymaps:CityState>
<ymaps:Zip>85259</ymaps:Zip>
<ymaps:GroupId>id-2</ymaps:GroupId>
</item>
<item>
<Title>45564</Title>
<link>valid link redacted</link>
<description>id-3</description>
<ymaps:Address>location redacted</ymaps:Address>
<ymaps:CityState>Scottsdale, AZ</ymaps:CityState>
<ymaps:Zip>85259</ymaps:Zip>
<ymaps:GroupId>id-3</ymaps:GroupId>
</item>
<item>
<Title>45487</Title>
<link>valid link redacted</link>
<description>id-4</description>
<ymaps:Address>location redacted</ymaps:Address>
<ymaps:CityState>Phoenix, AZ</ymaps:CityState>
<ymaps:Zip>85020</ymaps:Zip>
<ymaps:GroupId>id-4</ymaps:GroupId>
</item>
<item>
<Title>45548</Title>
<link>valid link redacted</link>
<description>id-5</description>
<ymaps:Address>location redacted</ymaps:Address>
<ymaps:CityState>Phoenix, AZ</ymaps:CityState>
<ymaps:Zip>85018</ymaps:Zip>
<ymaps:GroupId>id-5</ymaps:GroupId>
</item>
</channel>
</rss>
I am using v3.8 of the AJAX Map API and experiencing buggy behavior on IE8. On a
map with 300 markers created with the following snippet:
var marker = new YMarker(geoPoint, this.createCustomMarkerImage(img, xsize,
ysize));
marker.addAutoExpand(desc);
this.map.addOverlay(marker);
When you hover over one it opens but does not close when you hover over another.
However the description of the marker changes in the original marker.
Any ideas?
I recently posted on the observed IE8 behavior of markers not closing on
mouseout. I have narrowed down the offending code. It appears if there is an
anchor in the infovalue parameter, and it has either an onmouseup or an onclick
attribute, the marker fails.
IE7 and FF3.0 work fine.
Is there a workaround? Is there a fix planned?
Thanks.
[Non-text portions of this message have been removed]
Hello there
I am having two Lat Long points, right now i am calculating the distance using
the straight line distance But i need the real road distance between these two
points
and my program is in Java
i need it in Java not in JavaScript
any ideas or how to achieve this
for example:
protected double distance(double pX, double pY) {
double dx=this.x - pX;
double dy=this.y - pY;
double distance=Math.sqrt(dx * dx + dy * dy);
return distance;
}
Thanking you
Regards
Sameer
I'm trying to change the marker colors to a color that will better match the
website. I see this method 'setSmartWindowColor'. I tried applying it to the
YMarker object, but it doesn't seem to do anything, and I can't find any
examples of this method online.
Does anyone have a code example for this method?
Thanks!
Thanks Pat,
I'll register the bug and take it from here.
TB
On 8/7/09, Pat James <pat@...> wrote:
>
>
>
> Hi, what is the process for reporting suspected errors in the data returned
> by the Maps API?
>
> Querying on the lat, lon, city, and country for Canadian postal code P0M1M0
> yields a response with the incorrect city.
>
> here is my query:
> http://local.yahooapis.com/MapsService/V1/geocode?appid=
> <myappID>&zip=P0M1M0
>
> Which says the city is Capreol. The city is actually CONISTON.
>
> See
>
http://www.canadapost.ca/cpotools/apps/fpc/business/findAnAddress?execution=e1s1\
to get the city name Coniston from Canada Post.
>
> Thanks, Pat
>
>
>
[Non-text portions of this message have been removed]
I am still having this issue. Has no one else had issues using Firefox 3.5 and
rending of Yahoo maps javascript?
--- In yws-maps@yahoogroups.com, "seapiggdrazi" <seapiggdrazi@...> wrote:
>
> I know a few months back on the BB there were some postings on YPolyline
issues and their rending in newer version of IE. I am not having a similar
issue with YPolylines in Firefox 3.5 on the Mac. The lines sometimes show up,
and upon zooming in and out kind of flicker.
>
> Help?
>
We're excited to let you know that Eduardo Gonçalves has invited you to
Dropbox!
Eduardo Gonçalves has been using Dropbox to sync and share files online and
across computers, and thought you might want it too.
Visit http://www.getdropbox.com/link/20.yzlCHZ1AdQ/NjM1NDk4ODg3 to get started.
- The Dropbox Team
____________________________________________________
To stop receiving invites from Dropbox, please go to
http://www.getdropbox.com/bl/998ee4b67642/yws-maps%40yahoogroups.com
[Non-text portions of this message have been removed]