Select to view content in your preferred language

find sample Reverse geocode | ArcGIS API for JavaScriptfor 4.8

5003
17
Jump to solution
08-13-2018 08:45 PM
HsuKao-Ming
Emerging Contributor

Hey gutys:

I want to find sample Reverse geocode | ArcGIS API for JavaScriptfor 4.8  than search[ lon, lat]  to address(not click map to address).

but I didn't find this

So where can I go to find this

Ask for help

THANKS

0 Kudos
17 Replies
HsuKao-Ming
Emerging Contributor

Hi

1.YES.Some time return not correct address,return Commercial store name

So how can I do?

2.For your reference↓

Developer Guide  |  Time Zone API  |  Google Developers 

I focus this↓

 the offset for daylight-savings time in seconds. This will be zero if the time zone is not in Daylight Savings Time during the specified timestamp.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Hsu,

  1. Again. You have looked through all the attributes in the returned event and are sure the information you need is not returned right?

   2. Sorry I don't use the Google maps API so I can't help there.

0 Kudos
HsuKao-Ming
Emerging Contributor

Robert,

1.Again anwser YES,Not the same value returned by google.

  You can compare the latitude and longitude of a commercial vending shop.

2.Then, if you get the information obtained abroad, how to solve the time zone offset?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Can you provide an example of when a lat long returns a store name instead of an address? Example lat lon.

0 Kudos
HsuKao-Ming
Emerging Contributor

HI,Robert.

Try this example:

x:24.979867
y:121.549301

and then I got the new question.

 circle = new Circle({
 center: [lng,lat],
 geodesic: false,
 radius: 300, // 300 feet
 radiusUnit: "meters" 
 });
 
 view.graphics.add({
 symbol: {
 type: "simple-marker",
 color: [255,0,0,0.25],
 size:1000
 },
 geometry:circle
 });
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

symbol 's size and circle's radius,Which is the main influence on drawing information?

because I not set symbol 's size ,not draw circle

So how can I do?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Hsu,

   I don't read Taiwanese but I believe you need to use the LongLabel attribute to get the address.

新北市新店區寶興里寶中路119號安泰商業銀行, 231, TWN = Antai Commercial Bank, No. 119, Baozhong Road, Baoxing, Xindian District, New Taipei City, 231, TWN

var address = {Address: evt.attributes.LongLabel};

For new unrelated questions you need to start a new Question.

0 Kudos
HsuKao-Ming
Emerging Contributor

Robert,

Sorry,you try it again.

Test this 

x:24.979990000000043

y:121.54915000000005

link :

https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode?location=%7B%22sp... 

The LongLabel is Not detailed,should be return '231新北市新店區寶中路94-112'

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Hsu,

  I am not sure what to tell you. You say it should be:

231 94-112, Baozhong Road, Xindian District, New Taipei City

but the Geocode service returns
No. 1-3, Lane 113, Baozhong Road, Baoxing, Xindian District, New Taipei City, 231

There is no fixing this.

0 Kudos