replace - Instagram API: $value->location->latitude outputs comma separated value, whereas Google Maps accepts dot -


$value->location->latitude , $value->location->longitude output respectively 41,90693866 , 12,414128943. have link points to

href="http://maps.google.com/maps?q='.htmlentities($value->location->latitude).',+'.htmlentities($value->location->longitude).'" 

problem google maps accepts values 41.90693866 (notice dot instead of comma), doesn't work 41,90693866, 12,414128943 input (it 41.90693866, 12.414128943). how can output latitude/longitude comma instead of dot?

the json data see instagram api uses periods , not commas lat/lng data. sure in code not transforming formatting? check code this.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -